package com.sthz.facepay.service.impl;

import com.sthz.facepay.mapper.AdvertisementMapper;
import com.sthz.facepay.model.Advertisement;
import com.sthz.facepay.service.AdvertisementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author luli
 * @version jdk 1.8
 * @date 2019/7/12 14:29
 */
@Service
public class AdvertisementServiceImpl implements AdvertisementService {

    @Autowired
    private AdvertisementMapper advertisementMapper;
    @Override
    public Advertisement findAll(int aid) {
        return advertisementMapper.findAll(aid);
    }

    public  Advertisement findById(int id){
        return  advertisementMapper.findById(id);
    }

    public List<Advertisement> findBylike(){
        return advertisementMapper.findBylike();
    }
}
